package com.xmtlxx.wms.domain.vo;

import com.xmtlxx.common.annotation.ExcelDictFormat;
import com.xmtlxx.common.convert.ExcelDictConvert;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;



/**
 * 库存记录视图对象 t_inventory_log
 *
 * @author xmtlxx
 * @date 2022-08-15
 */
@Data
@ApiModel("库存记录视图对象")
@ExcelIgnoreUnannotated
public class InventoryLogVo {

    private static final long serialVersionUID = 1L;

    /**
     * 记录id
     */
//    @ExcelProperty(value = "记录id")
    @ApiModelProperty("记录id")
    private String id;

    /**
     * 货品名称
     */
    @ExcelProperty(value = "货品名称")
    @ApiModelProperty("货品名称")
    private String name;

    /**
     * 货品编号
     */
    @ExcelProperty(value = "货品编号")
    @ApiModelProperty("货品编号")
    private String pno;

    /**
     * 库存id
     */
//    @ExcelProperty(value = "库存id")
    @ApiModelProperty("库存id")
    private String stockId;

    /**
     * 仓库id
     */
    @ApiModelProperty("仓库id")
    private String storeId;

    @ExcelProperty(value = "仓库")
    private String storeName;

    /**
     * 库区ID
     */

    @ApiModelProperty("库区ID")
    private String areaId;
    @ExcelProperty(value = "库区")
    private String areaName;

    /**
     * 库位ID
     */
    @ApiModelProperty("库位ID")
    private String locatorId;

    @ExcelProperty(value = "库位")
    private String locatorName;

    /**
     * 变动前数量
     */
    @ExcelProperty(value = "变动前数量")
    @ApiModelProperty("变动前数量")
    private Long befores;

    /**
     * 变动数量
     */
    @ExcelProperty(value = "变动数量")
    @ApiModelProperty("变动数量")
    private Long nums;

    /**
     * 变动后数量
     */
    @ExcelProperty(value = "变动后数量")
    @ApiModelProperty("变动后数量")
    private Long afters;

    /**
     * 类型
     */
    @ExcelProperty(value = "类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "wms_inventory_log_type")
    @ApiModelProperty("类型")
    private String type;

    /**
     * 事件ID
     */
    @ExcelProperty(value = "事件ID")
    @ApiModelProperty("事件ID")
    private String referId;

    /**
     * 经办人
     */
    @ExcelProperty(value = "经办人")
    @ApiModelProperty("经办人")
    private String operator;

    /**
     * 原因
     */
    @ExcelProperty(value = "原因")
    @ApiModelProperty("原因")
    private String memo;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_common_status")
    @ApiModelProperty("状态")
    private String status;

    /**
     * 部门id
     */
    @ApiModelProperty("部门id")
    private Long deptId;

    @ExcelProperty(value = "部门")
    private String deptName;

    /**
     * 创建人
     */
    @ExcelProperty(value = "创建人")
    @ApiModelProperty("创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    @ApiModelProperty("创建时间")
    private Date createTime;

    /**
     * 更新人
     */
    @ExcelProperty(value = "更新人")
    @ApiModelProperty("更新人")
    private String updateBy;

    /**
     * 更新时间
     */
    @ExcelProperty(value = "更新时间")
    @ApiModelProperty("更新时间")
    private Date updateTime;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    @ApiModelProperty("备注")
    private String remark;

    /**
     * 删除标识
     */
    @ExcelProperty(value = "删除标识", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_del_flag")
    @ApiModelProperty("删除标识")
    private String delFlag;


}
